package com.varbal.icegame.entity;

import com.varbal.icegame.annotation.Dealer;
import com.varbal.icegame.annotation.Fruit;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

public class Apple
{
    int id;

//    @Fruit(brand = "红富士")
//    @Value("红富士")
    String brand;

//    @Fruit(address = "山东烟台")
    String address;

//    @Dealer("百果园")
    String dealer;

    public String getAddress() {
        return address;
    }

    public String getDealer() {
        return dealer;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Apple{" +
                "id=" + id +
                ", brand='" + brand + '\'' +
                ", address='" + address + '\'' +
                ", dealer='" + dealer + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }
}
